<?php

require_once 'Pipes/ModelList/Grid/RowBuilder.php';
require_once 'Pipes/Xml/Xpath.php';
require_once 'PipesImpl/Visitor.php';

class PipesCore_Helpers_Grid_BodyBuilder implements PipesImpl_Visitor
{
	private $_document = null;
	private $_capture = null;
	private $_mainKey = '';
	
	public function __construct(Pipes_Xml_Document $document,
		Pipes_Xml_Document $capture = null) {
		$this->_document = $document;
		$this->_capture = $capture;
	}
	
	public function visit(PipesImpl_Visitable $visitable) {
		$table = $this->_document->getElementsByTagName('table')->item(0);
		$tbody = $this->_document->createElement('tbody');
		$table->appendChild($tbody);
	}
}
